.search {
  &-input {
    position: relative;
    display: flex;
    align-items: center;
    height: pxtrem(60);
    width: 100%;
    // background: $inputColor;
    border-radius: pxtrem(30);
    border: pxtrem(2) solid transparent;
    box-sizing: border-box;
    padding: 0 pxtrem(70) 0 pxtrem(24);
    transition: all 0.5s linear;

    .icon-target-area {
      position: absolute;
      right: pxtrem(0);
      top: 50%;
      transform: translateY(-50%);
      width: pxtrem(60);
      height: 100%;
      padding-right: pxtrem(14);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    input {
      position: relative;
      z-index: 1;
      font-size: pxtrem(28);
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      align-items: center;
      height: 100%;
    }

    .icon-sousuo {
      font-size: pxtrem(32);
      color: #333333;
      margin-right: pxtrem(16);
    }

    .icon-shurukuangshanchu {
      font-size: pxtrem(32);
      color: #E5E5E5;
      z-index: 4;
      vertical-align: middle;
    }
  }

  &-keyword {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1002;
    padding: pxtrem(10) pxtrem(24);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
  }

  &-cancel {
    margin-left: pxtrem(24);
    font-size: pxtrem(28);
    color: #333;
    white-space: nowrap;
  }

  &-relation {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1001;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    &-box {
      padding-top: pxtrem(80);
    }
  }

  &-info,
  &-suggest {
    padding: pxtrem(24);
    box-sizing: border-box;
  }

  &-suggest {
    &-list {
      position: relative;
      height: pxtrem(88);
      box-sizing: border-box;
      border-bottom: pxtrem(2) solid #e5e5e5;
      font-size: pxtrem(28);
      color: #333;
      display: flex;
      align-items: center;

      ul {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        align-items: center;
        height: 100%;

        li {
          font-size: pxtrem(26);
          color: #666;
          font-family: PingFangSC-Regular, PingFangSC;
          font-weight: 400;
          padding: pxtrem(8) pxtrem(24);
          display: inline-flex;
          background-color: #F5F5F5;
          border-radius: pxtrem(26);
          align-items: center;
          text-align: center;
          margin-right: pxtrem(10);
          max-width: pxtrem(124);

          span {
            display: block;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }

          &:last-child {
            margin-right: 0;
          }
        }
      }
    }
  }

  &-info {

    h3 {
      font-size: pxtrem(32);
      color: #333;
      font-family: PingFangSC-Medium, PingFangSC;
      font-weight: 500;
      padding-bottom: pxtrem(20);
    }

    ul {
      li {
        margin-bottom: pxtrem(24);

      }
    }
  }

  &-find,
  &-history {
    position: relative;
    margin-bottom: pxtrem(32);

    ul {
      flex-wrap: wrap;
      margin-left: pxtrem(-24);

      li {
        font-size: pxtrem(26);
        color: #666;
        font-family: PingFangSC-Regular, PingFangSC;
        font-weight: 400;
        padding: pxtrem(8) pxtrem(24);
        display: inline-flex;
        background-color: #F5F5F5;
        border-radius: pxtrem(27);
        align-items: center;
        text-align: center;
        margin-left: pxtrem(24);
      }
    }
  }

  &-history {
    .icon-shanchu {
      position: absolute;
      right: 0;
      font-size: pxtrem(32);
      color: #666;
    }
  }

  &-findresult {

    &--fixedtop {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      // height: pxtrem(160);
      padding: 0 pxtrem(24);
      box-sizing: border-box;
      background: #fff;
      z-index: 4;
      transition: all 0.5s 0s linear;

      &.hide {
        top: pxtrem(-198);
      }
    }

    &--listitem {
      // position: fixed;
      // top: pxtrem(184);
      // z-index: 3;
      // left: 0;
      // right: 0;
      position: relative;

      background: #fff;
    }

    &--property {
      width: 100%;
      height: pxtrem(88);

      ul {
        display: flex;
        height: 100%;

        li {
          height: 100%;
          flex: 1;
          flex-shrink: 0;
          font-size: pxtrem(28);
          color: #333;
          display: flex;
          align-items: center;
          justify-content: center;

          &.act {
            color: #F24B24;
            font-weight: 600;

            .icon-shaixuan {
              color: #F24B24;
            }
          }

          .icon-arrow {
            position: relative;
            margin-left: pxtrem(6);

            .top-arrow {
              border-width: pxtrem(8);
              border-color: transparent transparent #ccc transparent;
              border-style: solid;
              margin-bottom: pxtrem(4);

              &.act {
                border-bottom-color: #F24B24;
              }
            }

            .bottom-arrow {
              border-width: pxtrem(8);
              border-color: #ccc transparent transparent transparent;
              border-style: solid;

              &.act {
                border-top-color: #F24B24;
              }
            }
          }

          .icon-shaixuan {
            font-size: pxtrem(28);
            color: #ccc;
            // margin-top: pxtrem(10);
            margin-left: pxtrem(10);
          }
        }
      }
    }

    &--goods {
      position: relative;
      z-index: 1;
      padding-top: pxtrem(272);
      top: 0;

      &.hide {
        height: 100%;
        overflow: hidden;
        position: fixed;
        bottom: 0;
        left: 0;
        // padding-top: pxtrem(0);
      }

      ul {
        background: #fff;

        li {
          position: relative;
          display: flex;
          padding: pxtrem(20);
          overflow: hidden;

          img {
            width: pxtrem(210);
            height: pxtrem(210);
            display: block;
            margin-right: pxtrem(20);
            flex-shrink: 0;
          }

          &::after {
            position: absolute;
            content: '';
            height: pxtrem(2);
            background: #dbdbdb;
            width: 100%;
            left: pxtrem(24);
            bottom: 0;
          }
        }
      }

      h5 {
        color: #666;
        text-align: center;
        padding: pxtrem(10) 0;
        font-size: pxtrem(32);
      }
    }

    &--goodscontent {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      h3 {
        font-size: pxtrem(28);
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #333;
        line-height: pxtrem(40);
      }

      h4 {
        padding: pxtrem(8) 0;

        span {
          display: inline-flex;
          border-radius: pxtrem(4);
          background: #F55554;
          padding: pxtrem(2) pxtrem(5);
          font-size: pxtrem(20);
          color: #fff;

          &:not(:last-child) {
            margin-right: pxtrem(8);
          }
        }
      }
    }

    &--price {
      display: flex;
      align-items: baseline;

      strong {
        font-size: pxtrem(32);
        color: #FF8400;
        line-height: pxtrem(45);
        font-family: PingFangSC-Semibold, PingFangSC;
        font-weight: 600;
      }

      b {
        font-size: pxtrem(24);
        color: #D6D6D6;
        line-height: pxtrem(32);
        font-family: PingFangSC-Semibold, PingFangSC;
        // font-weight:600;
        text-decoration: line-through;
        padding-left: pxtrem(20);
      }
    }

    &--category {
      position: fixed;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 100;
      background: rgba(0, 0, 0, .5);
      visibility: hidden;

      &.on {
        visibility: visible;
        overflow: hidden;

        ul {
          transform: translate3d(0%, 0, 0);
          overflow: scroll;
          padding-bottom: pxtrem(118);
        }

        .jk-search-findresult--btngroup {
          transform: translate3d(0%, 0, 0);
        }
      }

      ul {
        position: absolute;
        right: 0;
        bottom: 0;
        top: 0;
        width: pxtrem(548);
        background: #fff;
        z-index: 1;
        padding: pxtrem(24) pxtrem(24) 0;
        box-sizing: border-box;
        transform: translate3d(100%, 0, 0);
        transition: all 0.5s ease;

        li {
          h3 {
            position: relative;
            padding: pxtrem(24) 0 pxtrem(28);
            font-size: pxtrem(26);
            color: #333;
            font-family: PingFangSC-Medium, PingFangSC;
            font-weight: 500;

            .arrow-block {
              position: absolute;
              top: 0;
              height: 100%;
              right: 0;
              width: pxtrem(100);
              display: flex;
              align-items: center;
              justify-content: flex-end;

              .icon-shaixuanxialajiantou {
                font-size: pxtrem(20);
                color: #ccc;
                transition: all 0.5s linear;
              }

              &.on {
                .icon-shaixuanxialajiantou {
                  transform: rotate(180deg);
                }
              }
            }
          }

          .price-item {
            display: flex;
            align-items: center;
            justify-content: space-around;

            .line {
              width: pxtrem(40);
              height: pxtrem(4);
              background: #ddd;
              flex-shrink: 0;
            }

            input {
              width: pxtrem(200);
              height: pxtrem(80);
              background: #f5f5f5;
              border-radius: pxtrem(40);
              padding: pxtrem(8) pxtrem(16);
              box-sizing: border-box;
              font-size: pxtrem(24);
              color: #333;
              text-align: center;

              &::placeholder {
                color: #999;
              }
            }
          }

          .brand-flex-block {
            // visibility: hidden;
            // opacity: 0;
            transition: all 0.5s ease;
            flex-wrap: wrap;
            display: flex;
            height: pxtrem(192);
            overflow: hidden;

            &.on {
              // opacity: 1;
              // visibility: visible;
              height: auto;
              overflow: auto;
            }

            .list {
              width: pxtrem(156);
              height: pxtrem(80);
              margin-bottom: pxtrem(16);
              margin-right: pxtrem(16);
              background: #f5f5f5;
              border-radius: pxtrem(2);
              font-size: pxtrem(24);
              color: #666;
              padding: pxtrem(8) pxtrem(16);
              box-sizing: border-box;
              display: flex;
              align-items: center;
              justify-content: center;

              &:nth-child(3n) {
                margin-right: 0;
              }

              &.act {
                background: rgba(18, 179, 255, 0.2);
              }
            }
          }
        }
      }
    }

    &--btngroup {
      position: absolute;
      width: pxtrem(548);
      right: 0;
      bottom: 0;
      padding: pxtrem(16) pxtrem(24);
      background: #fff;
      z-index: 2;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      transform: translate3d(100%, 0, 0);
      transition: all 0.5s ease;

      .btn {
        width: pxtrem(238);
        height: pxtrem(64);
        font-size: pxtrem(28);
        line-height: pxtrem(64);
        text-align: center;
        background: #fff;
        border: pxtrem(2) solid #ddd;
        box-sizing: border-box;
        color: #333;
        border-radius: pxtrem(12);

        &.btn2 {
          background: #12B3FF;
          border-color: #12B3FF;
          color: #fff;
        }
      }
    }
  }
}